// server.js
const egg = require('egg');
const path = require('path');
require(path.join(__dirname, '/node_modules/egg-scripts/bin/egg-scripts.js'));
const workers = Number(process.argv[2] || require('os').cpus().length);
egg.startCluster({
  workers,
  env: 'prod',
  baseDir: __dirname,
});
